﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DemoAutofac.Models {
    interface iAdd <T> {
        T Add(T a, T b);     
    }

    interface iMultiply <T> {
        T Multiply(T a, T b);
    }
    public class intMath : iAdd<int>, iMultiply<int> {
        public int Add(int a, int b) {
            return a + b;
        }
        public int Multiply(int a, int b) {
            return a * b;
        }
    }

    public class doubleMath : iAdd<double>, iMultiply<double> {
        public double Add(double a, double b) {
            return a + b;
        }
        public double Multiply(double a, double b) {
            return a * b;
        }
    }
}
